<template>
  <div class="toast-container">
    <h1 v-show="show">dddddd</h1>
  </div>
</template>

<script>
export default {
  data() {
    return {
      show: false,
      timer: null,
    };
  },
  mounted() {},
  destoryed() {
    console.log(this.timer, "---------组件内部销毁");
    clearTimeout(timer);
  },
};
</script>

<style lang="scss" scoped>
.toast-container {
  width: calc(100vw - 60%);
  height: calc(100vh - 70%);
  background: black;
  color: black;
  font-size: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
